#version 150

in  vec2 texCoord;
out vec4 fColor;

uniform sampler2D texture;
const vec3 W = vec3(0.2125, 0.7154, 0.0721);

void main() 
{ 
	vec3 irgb = texture2D(texture, texCoord).rgb;
	float luminance = dot(irgb, W);

	fColor = vec4(luminance, luminance, luminance, 1.0);

}